package run.siyuan.manag.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import run.siyuan.manag.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  角色表  Mapper 接口
 * </p>
 *
 * @author siyuan
 * @since 2021-01-13
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根据用户查询角色
     *
     * @param username
     * @return
     */
    SysRole getSysRoleByUserName(@Param("username") String username);
}
